-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix and Revert "Revert "Display banner to enable 2FA when setting up VBBA"" #14029
Fix and Revert "Revert "Display banner to enable 2FA when setting up VBBA"" #14029
Conversation
@mananjadhav @dangrous One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@MonilBhavsar Is the API available on staging to test and review? |
Not until, we deploy the Web PR. Will notify here, once it is deployed and this PR is unheld |
While we're waiting for the Web-E pull, a quick question - it looks like there are two places where this isn't quite a revert:
Am I interpreting that right? Totally fine either way but want to make sure I'm not missing anything. Thanks! |
@dangrous yes correct! This is not a straight revert, in fact a revert with some amendments. Looks like you got the changes that differs from the previous PR that was reverted 😄 |
Hey! So tested this on newDot web and got through setting up 2FA on oldDot. However when I click the "Finish" button on oldDot after setting it up, instead of redirecting back to the App it goes to The app side of things, though, DOES work - the prompt appears if 2FA is not enabled, and disappears if it is (on a page reload). Haven't tested the other platforms yet due to the above. |
@mananjadhav you'll be now able to test on staging |
Hmm, not known. Could you please confirm, you have checked out main, ran grunt on Web-E. |
Okay thanks. I'll get to this today. |
@MonilBhavsar Apologies, I thought I had run grunt but maybe I didn't. Works like a charm now! I'll wait for @mananjadhav to confirm the testing but looking good and we can merge shortly. |
I just testing this and should have the checklist in 30mins-1 hour. |
I am a little blocked for the testing, @MonilBhavsar @dangrous. Can you help me what can be done here? I tried adding. multiples non public emails, and refresh. It blocks me later for multiple secondary attempts. Can't get past this step. |
So I think that might be a different flow - are you adding a bank account in a VERIFYING state? I think that way you won't hit that screen. I realize now that that instruction is in the QA Steps but not testing, I'll update the description quickly. |
@dangrous I am not sure what you mean by adding the bank account in Here's the steps that I am following:
|
Ah yes, this needs to be tested internally because of bank accounts, I think |
No worries! @dangrous I tried again today, in a different browser and could not reproduce that issue Screen.Recording.2023-01-20.at.11.24.21.PM.mov |
Correct, also olddot doesn't work on mobile web, unless one selects "Request a desktop" site, but it would be good to test it as a part of process.
Yes, in the physical, I think there is an option in android and iOS to open that in the app. |
Okay cool - so how do you want to move forward? Should I fill out the checklist with the caveat that I was unable to confirm the behavior on mobile web, but that it won't be a flow that needs to work for the end user? Or are we able to get someone else to test? What do you think? I'm hoping the desktop flakiness is just on my end, but would be great to have one more test of that too, since I have no idea why it's happening for me (Also merge conflicts now, sorry!) |
I think we should test it. @mountiny @youssef-lr if you could help us test and complete the checklist |
Testing now! |
Thanks for jumping in @youssef-lr ! Sorry my testing keeps causing so much trouble |
Have you had success? @youssef-lr I will try but not sure if I will get around to this, gotta deploy web today |
Sorry @mountiny, I had some issues in my VM after updating everything, and had to do a destroy+up, it's now working properly and I'm back to testing! Will report back here as soon as I'm done. |
Testing on iOS is working as expected! I added a 4th step to the notes in the issue description as I needed to do this for linking to work.
RPReplay_Final1674494460.2.MP4Will update this comment with Chrome Android results. |
Oh nice, thanks @youssef-lr @MonilBhavsar if we got that one from Youssef, seems like we might be able to merge this one, right? |
Seems like the issue @dangrous was originally having occurs on Android Chrome, when I'm taken back to NewDot, I find myself logged out. Screen.Recording.2023-01-23.at.20.06.31.mov |
Hmm @MonilBhavsar any thoughts? On the one hand I'm happy that it's not just me, but on the other hand, now we have to figure out why haha |
Crazy thought, should we add the 2FA set up to NewDot right now, I mean it will have to be added eventually and probably quite soon. These bridges over to oldDot and back will always been a bit wobly. Or, we can also deploy this to staging, keep an eye on it, let QA test this out wild on all platforms and revert in case it does not work. Since we can see it works for some and less for others it might be due to the fact that this portal between New and Old dot is not that great in dev. If @MonilBhavsar tested this and it worked for him and it worked fine for almost all platforms to the other reviewers, then we should be fine getting this out. Thoughts? |
I might agree with you @mountiny given that the tested flow is not actually a viable flow except on desktop - all mobile implementations, whether mWeb or the app, require the user to request the desktop app and then use a different device to scan the QR code, which is.... very unlikely. So as long as we're sure desktop (definitely works) and desktop web (mostly works?) work, I think we would be okay. It does bother me that we don't yet know the source of the flakiness, but maybe that's a separate issue? |
Seems like at the start the QA/Tests/ set up steps were not clear or not everyone had the same environment set up, I feel like that might have contirbuted. I feel like we should move on, lets merge this and ping QA to specially test this flow on all platforms once in staging to ensure its working. Its not extremely used flow so I feel like this should work out. |
Cool, I think that makes sense for now! @mountiny I'll let you do the honors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MonilBhavsar Are you happy with the plan? Would you be able to contact QA when this would be merged and deployed?
If this worked for you locally on mobile web as well, I believe we can go ahead. Feel free to self-merge once you happy with this!
Hey! Sorry for some delay here. back from some ooo. |
we tested yesterday and it worked for @youssef-lr 2FA.testing.720p.mov |
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.2.64-1 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
Details
Reverts and updates to the previous PR to fix the functionality
Reverts #13407
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/238668
Tests
Let user have 2FA disabled
Tests with https://github.com/Expensify/Web-Expensify/pull/35988.
Notes:
URL_TO_NEWDOT
in dev-config on olddot to reflect ngrok url instead of localhost:8080 (localhost doesn't work on android chrome)EXPENSIFY_URL
in App.env
to reflect your ngrok url so that the linking from App to olddot works.Offline tests
Doesn't work offline
QA Steps
Prerequisite: User should have 2FA disabled in olddot > Settings > Accounts
Now,
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
23/01
Screen.Recording.2023-01-23.at.4.29.37.PM.mov
Web
Screen.Recording.2023-01-06.at.10.41.19.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-01-06.at.6.41.56.PM.mov
Mobile Web - Safari
Screen.Recording.2023-01-06.at.5.56.57.PM.mov
Desktop
Screen.Recording.2023-01-06.at.4.12.35.PM.mov
iOS
Screen.Recording.2023-01-06.at.6.01.38.PM.mov
Android
Screen.Recording.2023-01-06.at.7.18.10.PM.mov